<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>電報網-電腦報價網</title>

		<%= stylesheet_link_tag "yui/reset-fonts-grids/reset-fonts-grids" %>
		<%= stylesheet_link_tag "mollio-yui/mollio-yui", :media => "screen" %>
		<%= javascript_include_tag :defaults %>
		<%= javascript_include_tag "mollio/common" %>	
    </head>

    <body>
        <div id="<%= yullio_page_width %>" class="<%= yullio_column_template %>">
            <!-- #hd {{{ -->
            <div id="hd">
                <div id="header">
                    <div id="site-name">電報網</div>
                    <div id="search">
                    </div>
                    <%= render :partial => "shared/index_menu"%>  
                </div>

                <p>廣告放置處</p>
            </div>
            <!-- END: #hd }}} -->

            <!-- #bd {{{ -->
            <div id="bd">
                <!-- #yui-main {{{ -->
                <div id="yui-main">
                    <div class="yui-b">
                        <% if flash[:notice] -%>
                            <%= flash[:notice] %>
                        <% end -%>
                        <div id="content">
                            <%= yield %>
                        </div>
                    </div>
                </div>
                <!-- END: #yui-main }}} -->

                <!-- .yui-b {{{ -->
				<% if yullio_column_template != 'yui-t7' %>
                <div class="yui-b">
                    <div id="utility">
			<%= render :partial => "shared/sidebar"%>
                        <%= favorite_partial %>
                    </div>
                </div>
				<% end %>
                <!-- END: .yui-b }}} -->
            </div>
            <!-- END: #bd }}} -->
            <!-- #ft {{{ -->
            <div id="ft">
                <p>Copyright &copy; 2008 電報你.com. Designed by <a href="http://www.freecsstemplates.org" class="link1">Tangblack</a></p>
                <% if session[:user_id].nil? %>
                  <%= link_to '登入', {:controller => :user, :action => :login} %>
                <% else %>
                  <%= link_to '管理電報', computers_path %>
                  <%= link_to '管理留言', posts_path %>
                  <%= link_to '登出', {:controller => :user, :action => :logout} %>
                <% end %>
            </div>
            <!-- END: #ft }}} -->
        </div>
    </body>
</html>

